﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AC3 RID: 2755
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MarkAvatarScRsp : IMessage<MarkAvatarScRsp>, IMessage, IEquatable<MarkAvatarScRsp>, IDeepCloneable<MarkAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170022C2 RID: 8898
		// (get) Token: 0x06007B3C RID: 31548 RVA: 0x00149289 File Offset: 0x00147489
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MarkAvatarScRsp> Parser
		{
			get
			{
				return MarkAvatarScRsp._parser;
			}
		}

		// Token: 0x170022C3 RID: 8899
		// (get) Token: 0x06007B3D RID: 31549 RVA: 0x00149290 File Offset: 0x00147490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MarkAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170022C4 RID: 8900
		// (get) Token: 0x06007B3E RID: 31550 RVA: 0x001492A2 File Offset: 0x001474A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MarkAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x06007B3F RID: 31551 RVA: 0x001492A9 File Offset: 0x001474A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarScRsp()
		{
		}

		// Token: 0x06007B40 RID: 31552 RVA: 0x001492B1 File Offset: 0x001474B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarScRsp(MarkAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.isMarked_ = other.isMarked_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007B41 RID: 31553 RVA: 0x001492EE File Offset: 0x001474EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MarkAvatarScRsp Clone()
		{
			return new MarkAvatarScRsp(this);
		}

		// Token: 0x170022C5 RID: 8901
		// (get) Token: 0x06007B42 RID: 31554 RVA: 0x001492F6 File Offset: 0x001474F6
		// (set) Token: 0x06007B43 RID: 31555 RVA: 0x001492FE File Offset: 0x001474FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170022C6 RID: 8902
		// (get) Token: 0x06007B44 RID: 31556 RVA: 0x00149307 File Offset: 0x00147507
		// (set) Token: 0x06007B45 RID: 31557 RVA: 0x0014930F File Offset: 0x0014750F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMarked
		{
			get
			{
				return this.isMarked_;
			}
			set
			{
				this.isMarked_ = value;
			}
		}

		// Token: 0x170022C7 RID: 8903
		// (get) Token: 0x06007B46 RID: 31558 RVA: 0x00149318 File Offset: 0x00147518
		// (set) Token: 0x06007B47 RID: 31559 RVA: 0x00149320 File Offset: 0x00147520
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x06007B48 RID: 31560 RVA: 0x00149329 File Offset: 0x00147529
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MarkAvatarScRsp);
		}

		// Token: 0x06007B49 RID: 31561 RVA: 0x00149338 File Offset: 0x00147538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MarkAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.IsMarked == other.IsMarked && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007B4A RID: 31562 RVA: 0x00149394 File Offset: 0x00147594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.IsMarked)
			{
				num ^= this.IsMarked.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007B4B RID: 31563 RVA: 0x00149405 File Offset: 0x00147605
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007B4C RID: 31564 RVA: 0x0014940D File Offset: 0x0014760D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007B4D RID: 31565 RVA: 0x00149418 File Offset: 0x00147618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.IsMarked)
			{
				output.WriteRawTag(88);
				output.WriteBool(this.IsMarked);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007B4E RID: 31566 RVA: 0x00149490 File Offset: 0x00147690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.IsMarked)
			{
				num += 2;
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007B4F RID: 31567 RVA: 0x001494F4 File Offset: 0x001476F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MarkAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.IsMarked)
			{
				this.IsMarked = other.IsMarked;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007B50 RID: 31568 RVA: 0x00149558 File Offset: 0x00147758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007B51 RID: 31569 RVA: 0x00149564 File Offset: 0x00147764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 48U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.IsMarked = input.ReadBool();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002F19 RID: 12057
		private static readonly MessageParser<MarkAvatarScRsp> _parser = new MessageParser<MarkAvatarScRsp>(() => new MarkAvatarScRsp());

		// Token: 0x04002F1A RID: 12058
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002F1B RID: 12059
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04002F1C RID: 12060
		private uint retcode_;

		// Token: 0x04002F1D RID: 12061
		public const int IsMarkedFieldNumber = 11;

		// Token: 0x04002F1E RID: 12062
		private bool isMarked_;

		// Token: 0x04002F1F RID: 12063
		public const int AvatarIdFieldNumber = 4;

		// Token: 0x04002F20 RID: 12064
		private uint avatarId_;
	}
}
